package org.dreamwork.jasmine2.engine;

import org.dreamwork.jasmine2.events.*;

/**
 * Created by IntelliJ IDEA.
 * User: seth
 * Date: 2009-1-30
 * Time: 23:19:16
 */
public interface IServerSideControl {
    // events
    void addPreRenderEvent (IPrerenderListener listener);
    void removePreRenderEvent (IPrerenderListener listener);
    void firePreRenderEvents () throws EventException;
    IPrerenderListener[] getPreRenderEvents ();

    void addDisposeEvent (IDisposeListener listener);
    void removeDisposeEvent (IDisposeListener listener);
    void fireDisposeEvents () throws EventException;
    IDisposeListener[] getDisposeEvents ();

/*
    void addServerSideListener (IServerSideListener listener);
    void removeServerSideListener (IServerSideListener listener);
    void fireServerSideListener (ServerSideEvent event);
    IServerSideListener[] getServerSideListeners ();
*/
}